﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _09SubsetOfFiveInt
{
    class _09SubsetOfFiveInt
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter five integer numbers:");
            Console.Write("a = ");
            string firstValue = Console.ReadLine();
            int a = int.Parse(firstValue);
            Console.Write("b = ");
            string secondValue = Console.ReadLine();
            int b = int.Parse(secondValue);
            Console.Write("c = ");
            string thirdValue = Console.ReadLine();
            int c = int.Parse(thirdValue);
            Console.Write("d = ");
            string fourthValue = Console.ReadLine();
            int d = int.Parse(fourthValue);
            Console.Write("e = ");
            string fifthValue = Console.ReadLine();
            int e = int.Parse(fifthValue);

            if (a == 0)
            {
                Console.WriteLine("The sum of the subset {a} = 0");
            }
            else if (b == 0)
            {
                Console.WriteLine("The sum of the subset {b} = 0");
            }
            else if (c == 0)
            {
                Console.WriteLine("The sum of the subset {c} = 0");
            }
            else if (d == 0)
            {
                Console.WriteLine("The sum of the subset {d} = 0");
            }
            else if (e == 0)
            {
                Console.WriteLine("The sum of the subset {e} = 0");
            }
            else if (a + b == 0)
            {
                Console.WriteLine("The sum of the subset {a, b} = 0");
            }
            else if (a + c == 0)
            {
                Console.WriteLine("The sum of the subset {a, c} = 0");
            }
            else if (a + d == 0)
            {
                Console.WriteLine("The sum of the subset {a, d} = 0");
            }
            else if (a + e == 0)
            {
                Console.WriteLine("The sum of the subset {a, e} = 0");
            }
            else if (b + c == 0)
            {
                Console.WriteLine("The sum of the subset {a, c} = 0");
            }
            else if (b + d == 0)
            {
                Console.WriteLine("The sum of the subset {b, d} = 0");
            }
            else if (b + e == 0)
            {
                Console.WriteLine("The sum of the subset {b, e} = 0");
            }
            else if (c + d == 0)
            {
                Console.WriteLine("The sum of the subset {c, d} = 0");
            }
            else if (c + e == 0)
            {
                Console.WriteLine("The sum of the subset {c, e} = 0");
            }
            else if (d + e == 0)
            {
                Console.WriteLine("The sum of the subset {d, e} = 0");
            }
            else if (a + b + c == 0)
            {
                Console.WriteLine("The sum of the subset {a, b, c} = 0");
            }
            else if (a + b + d == 0)
            {
                Console.WriteLine("The sum of the subset {a, b, d} = 0");
            }
            else if (a + b + e == 0)
            {
                Console.WriteLine("The sum of the subset {a, b, e} = 0");
            }
            else if (a + c + d == 0)
            {
                Console.WriteLine("The sum of the subset {a, c, d} = 0");
            }
            else if (a + c + e == 0)
            {
                Console.WriteLine("The sum of the subset {a, c, e} = 0");
            }
            else if (a + d + e == 0)
            {
                Console.WriteLine("The sum of the subset {a, d, e} = 0");
            }
            else if (b + c + d == 0)
            {
                Console.WriteLine("The sum of the subset {b, c, d} = 0");
            }
            else if (b + c + e == 0)
            {
                Console.WriteLine("The sum of the subset {b, c, e} = 0");
            }
            else if (b + d + e == 0)
            {
                Console.WriteLine("The sum of the subset {b, d, e} = 0");
            }
            else if (c + d + e == 0)
            {
                Console.WriteLine("The sum of the subset {c, d, e} = 0");
            }
            else if (a + b + c + d == 0)
            {
                Console.WriteLine("The sum of the subset {a, b, c, d} = 0");
            }
            else if (a + b + c + e == 0)
            {
                Console.WriteLine("The sum of the subset {a, b, c, e} = 0");
            }
            else if (a + b + d + e == 0)
            {
                Console.WriteLine("The sum of the subset {a, b, d, e} = 0");
            }
            else if (a + c + d + e == 0)
            {
                Console.WriteLine("The sum of the subset {a, c, d, e} = 0");
            }
            else if (b + c + d + e == 0)
            {
                Console.WriteLine("The sum of the subset {b, c, d, e} = 0");
            }
            else if (a + b + c + d + e == 0)
            {
                Console.WriteLine("The sum of the subset {a, b, c, d, e} = 0");
            }
            Console.ReadLine();
        }
    }
}
